﻿<UserControl x:Class="FHIntranetParser.GradesParser"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
        <DataGrid x:Name="GradesDataGrid" Margin="0" Grid.Row="1" AutoGenerateColumns="False" AlternationCount="2" AlternatingRowBackground="AliceBlue" RowBackground="LightBlue" CanUserAddRows="False">
            <DataGrid.Columns>
                <DataGridTextColumn Header="Note" Width="50" Binding="{Binding Grd}" />
                <DataGridTextColumn Header="Lehrveranstaltung" Width="*" Binding="{Binding Subject}" />
                <DataGridTextColumn Header="ECTS" Width="50" Binding="{Binding Ects}"/>
                <DataGridTextColumn Header="Art" Width="50" Binding="{Binding Type}"/>
                <DataGridTextColumn Header="Prüfungsdatum" Width="100" Binding="{Binding Date, StringFormat=\{0:dd.MM.yyyy\}}"/>
                <DataGridTextColumn Header="Semester" Width="60" Binding="{Binding Semester}"/>
            </DataGrid.Columns>
        </DataGrid>
        <WebBrowser x:Name="FHWebBrowser" Margin="0" Grid.Row="1" LoadCompleted="FHWebBrowser_LoadCompleted" Width="1" Height="1" HorizontalAlignment="Left" VerticalAlignment="Top" />
    </Grid>
</UserControl>
